<template>
    <div>
        <h2 ref="gainRefs">我也想获取我的refs</h2>
        <button @click="gain">点我获取</button>
    </div>
</template>

<script>
    export default {
        name : 'Content',
        methods:{
            gain(){
                console.log(this.$refs.gainRefs);
            }
        }
    }
</script>

<style lang="scss" scoped>

</style>